///引入共享头部
import '../../common/shard.dart';
///引入仓库
import '../../store/main.dart';

class Detail2Page extends StatelessWidget {
	const Detail2Page({Key? key}) : super(key: key);

	@override
	Widget build(BuildContext context) {
		return GetBuilder<MainStore>(builder: (store){
			List agrs=Get.arguments;
			return CustomCupertinoScaffold(
				titleText: "详情页2",
                navBackgroundColor: Theme.of(context).primaryColor,
				body: Column(
					mainAxisAlignment: MainAxisAlignment.center,
					crossAxisAlignment: CrossAxisAlignment.center,
					children:  [
						Text("我接到的参数是${agrs.toString()}"),
						TextButton(
							onPressed: (){
								Get.back();
								Get.back();
							},
							child: const Text("返回到首页")
						)
					],
				),
			);
		});
	}
}
